package com.teacold.madai;

import android.app.Activity;
import android.provider.SyncStateContract;

import com.tencent.mm.opensdk.modelbiz.WXLaunchMiniProgram;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;

public class MDdemo {

    public static void  tuneUp(Activity mActivity ){
        IWXAPI api = WXAPIFactory.createWXAPI(mActivity, "wx625a5eb822761543");
        WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req();
        req.userName = "gh_4bafd7015f04"; // 填小程序原始id
        req.path = "pages/index/index?param=VlAePQqLx77pYmUQjrvpLCKaPw6X3K405Dml0dnyq+xfK/zagQ/5PU7YT6Z06fv0+YPIv/IZ3KN1ybca8XmNCIdJY/WRlVzvZh/N5aP73X4TZUzh3zLzGgEcKd3nOt//Q8aq+9KlAXfeW/mE0YfEEjIXXKXLdWxeFV1Sx9K9usuzT3FNh5XlYLvoUwucDaTckOvlDfsgC9KTejMezI1WhoTqqckcsSxXa5cV8Tpob6Uqig64Zw0DAGcluMRHJ6lUx3+jil3amSu0EF2QvDnlTSebimXnyRXFrjtNarr60zhisSfGdyhtfIp/2ML/c6zKf1q2+5DepVoepaBOm0lxCgZFoFAKvY5t/jKR9n2IhKkwPiBVfDowjuG7R7U4i0z07UdaSssZ/CIGP4iguYjm8EWPnjkAYCyBf4I41ddux7GbsDR4LfgsG98QuYF1IJD5a9lVnrMicX3Nt4m8Uw+SCl7NeHS2MjBSn1sqKgm2Bz0BLhKqKBgkFhjuM5f/zBmdCYc7lMVL1iFIBjdmw6mWYtkK2gSYrgDXFMRcBbETb/w9xlNIZO+uoXdoQq6b4OB29wbeey07Ya3rFKH12Zd1QsQOdvNlBZGeEh2e6Td324UkVz6VJZq3UrvSAGGf5W1VYyuppMcUGVct6LJ9u3iFfNXr0q4ALHq4dOExkuVrg0Y=";      //拉起小程序页面的可带参路径，不填默认拉起小程序首页
        req.miniprogramType = WXLaunchMiniProgram.Req.MINIPROGRAM_TYPE_PREVIEW;// 可选打开 开发版，体验版和正式版
        api.sendReq(req);
    }

}
